import { Component, OnInit, Input } from "@angular/core";

@Component({
    selector: "app-dialog-dam",
    templateUrl: "./dialog-dam.component.html",
    styleUrls: ["./dialog-dam.component.scss"]
})
export class DialogDamComponent implements OnInit {
    @Input() data: any;
    tabs: any[] = ["过程线", "库容曲线", "旬月特征", "历史同期", "特征信息"];
    eigenvalues: any[] = [
        "最高水位",
        "最低水位",
        "平均水位",
        "最高入库流量",
        "最低入库流量",
        "平均入库流量",
        "最高出库流量",
        "最低出库流量",
        "平均出库流量"
    ];
    selectedIdx: number = 0;
    timeTypes: any[] = ["旬", "月"];
    type: number = 0;
    historyTypes: any[] = ["水位", "入库流量", "出库流量"];
    hType: number = 0;
    chartOpt: any = {
        xAxis: {
            type: "category",
            data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
        },
        yAxis: {
            type: "value"
        },
        series: [
            {
                data: [820, 932, 901, 934, 1290, 1330, 1320],
                type: "line",
                smooth: true
            }
        ]
    };

    constructor() {}

    ngOnInit() {
        console.log(this.data);
    }

    onChange(e) {}

    onOk(e) {}
}
